/**
 * Feb 25, 2014 - 10:08:40 AM
 */
package elitech.vietnam.myfashion.badge;

import android.content.Context;
import android.util.Log;

/**
 * @author Cong Vo
 *
 */
public class BadgeHelper {

	private Samsung mSamsung;
	private Sony mSony;
	
	public int mBadgeCount = 0;
	
	public BadgeHelper(Context context) {
		mSamsung = new Samsung(context);
		mSony = new Sony(context);
	}
	
	public void increaseBadge() {
		mBadgeCount += 1;
		Log.w("Update Badge", mBadgeCount + "");
		mSamsung.updateBadge(mBadgeCount);
		mSony.updateBadge(mBadgeCount);
	}

	public void increaseBadge(int num) {
		mBadgeCount += num;
		Log.w("Update Badge", mBadgeCount + "");
		mSamsung.updateBadge(mBadgeCount);
		mSony.updateBadge(mBadgeCount);
	}
	
	public void hideBadge() {
		mBadgeCount = 0;
		mSamsung.updateBadge(mBadgeCount);
		mSony.updateBadge(mBadgeCount);
	}
}
